<!doctype html>
<html ng-app='ryAdmin'>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='chrome=1,IE=edge'>
    <meta name='viewport' content='width=device-width, initial-scale=1'>
    <meta name='renderer' content='webkit'>
    <meta name='keywords' content=''> 
    <meta name='description' content=''>
    <title>欣乐土-管理系统</title>
    <script type='text/javascript' src='../plugin/Jquery/jquery-2.0.min.js'></script>
    <script type='text/javascript' src='../plugin/Bootstrap/js/bootstrap.min.js'></script>
    <script src='../plugin/AngularJs/angular.min.js'></script>
    <script src='../plugin/AngularJs/angular-route.js'></script>
    <script src='../plugin/AngularJs/angular-sanitize.min.js'></script>
    <script src='../plugin/qrcode.js'></script>

    <!--时间插件-->
    <link href="../plugin/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
    <link href="../plugin/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="../plugin/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="../plugin/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
    <!--上传插件-->
    <script type='text/javascript' src='../plugin/Uploadifive/jquery.uploadifive.min.js'></script>
    <link rel='stylesheet' type='text/css' href='../plugin/Uploadifive/uploadifive.css'>
    <!--图表插件、主题   竹晓玉-->
    <script src="../plugin/echarts/echarts.common.min.js"></script>
    <script src="../plugin/echarts/macarons.js"></script>
    <!-- 文件上传插件   angularjs 竹晓玉 -->
    <script src="../plugin/ng-file-upload.min.js"></script>
    <script src="../plugin/ng-file-upload-shim.min.js"></script>

    <link rel='icon' type='image/png' href='../image/logo-icon.png'>
    <link rel='stylesheet' type='text/css' href='../plugin/Bootstrap/css/bootstrap.min.css'>
    <link rel='stylesheet' type='text/css' href='../plugin/FontAwesome/css/font-awesome.min.css'>
    <link rel='stylesheet' type='text/css' href='../css/common.css'>
    <link rel='stylesheet' type='text/css' href='../css/common_xy.css'>
    <link rel='stylesheet' type='text/css' href='../css/bootstrap.dev.css'>
    <link rel='stylesheet' type='text/css' href='../css/animate.css'>
    <style type="text/css">
        .version {
            position: fixed;
            bottom: 5%;
            right: 0;

            text-align: center;
            line-height: 35px;
            z-index: 10;
            border-radius: 5px;
            font-size: 16px;

            cursor: pointer;
        }
        .version_number {
            background-color: wheat;
            text-align: center;
            line-height: 35px;
            z-index: 10;
            padding: 8px;
            border-bottom-left-radius: 8px;
            border-top-left-radius: 8px;
            font-size: 16px;
            color: black;
        }
        .box-tab >.nav-tabs>li>a {
             margin-right: 0px;
             border-radius: 0px;
        }
    </style>
</head>

<body>
    <div class='header' ng-controller='Header'>
        <div class='logo'>
            <img src='../image/logo.png'>
        </div>
        <div class='title'>
            欣乐土管理平台
        </div>
        <div class='user dropdown'>
            <img class='user-logo' src='../image/user-logo.png'>
            <span class='user-name'>{{user.nickname}}</span>

            <span class='box-icon dropdown-toggle pull-right' data-toggle='dropdown'>
                <i class='fa fa-angle-down'></i>
            </span>

            <ul class='dropdown-menu'>
                <li><a>详情信息</a></li>
                <li><a data-toggle='modal' data-target='#modal-repass'>密码修改</a></li>
                <hr class='hr-sm'>
                <li style='margin:5px 10px; display:block'>
                    <button class='btn btn-danger btn-block' ng-click='logout()'>
                        <i class='fa fa-power-off'></i>
                        退出登录
                    </button>
                </li>
            </ul>
        </div>
        <div class='ops'>
            <span class='box-icon'>
                <i class='fa fa-bell'></i>
            </span>
            <span class='box-icon' onclick='full_screen()'>
                <i class='fa fa-arrows-alt'></i>
            </span>
        </div>

        <!--更改密码模态窗-->
        <div class='modal fade' id='modal-repass'>
            <div class='modal-dialog'>
                <div class='modal-content'>
                    <div class='modal-header'>
                        密码更改
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    </div>
                    <div class='modal-body'>
                        <table class='table-form'>
                            <tr>
                                <td class='td-label'>原密码:</td>
                                <td><input type='password' ng-model='old_pass' class='form-control input-sm'></td>
                            </tr>
                            <tr>
                                <td class='td-label'>新密码:</td>
                                <td><input type='password' ng-model='new_pass' class='form-control input-sm'></td>
                            </tr>
                            <tr>
                                <td class='td-label'>新密码:</td>
                                <td><input type='password' ng-model='re_new_pass' class='form-control input-sm'></td>
                            </tr>
                        </table>
                    </div>
                    <div class='modal-footer'>
                        <button class='btn btn-primary btn-w-sm' ng-click='re_pass()'>确定</button>
                        <button class='btn btn-default btn-w-sm' data-dismiss='modal'>取消</button>
                    </div>
                </div>
            </div>
        </div>
        <div ng-if="version!=''" class="version"><span class="version_number">版本号：{{version}}</span></div>
    </div>

    <div class='left-nav' ng-controller='Menu'>
        <div class='title'>
            网站管理
        </div>
        <ul class='list-group'>
            <div ng-repeat='menu in menus'>
                <li class='list-group-item wrap-shake' ng-click='collapse($index)' ng-if='menu.is_auth == 1'>
                    <i class='icon {{menu.icon || "fa fa-circle"}} hover-shake'></i>
                    {{menu.title}}
                    <i class='icon-sys fa fa-angle-right'></i>
                </li>
                <ul class='s-list-group collapse' id='s-list-group-{{menu.id}}'>
                    <li class='list-group-item' ng-if='cmenu.is_auth == 1' ng-repeat='cmenu in menu.child' 
                        ng-click='open(cmenu.url)' data-url='{{cmenu.url}}'>
                        <i class='fa fa-circle'></i>
                        {{cmenu.title}}
                    </li>
                </ul>
            </div>
        </ul>
    </div>

    <div ng-view=''></div>
</body>

<script type="text/javascript" src='./common/init.js'></script>
<script type="text/javascript" src='./common/function.js'></script>
<script type="text/javascript" src='./common/config.js'></script>
<script type="text/javascript" src='./common/route.js'></script>
<script type="text/javascript" src='./common/service.js'></script>
<script type="text/javascript" src='./controller/controller.js'></script>
<script type="text/javascript">
</script>
</html>